FOREACH(NAME server client)
  ADD_EXECUTABLE(${NAME} ${NAME}.cpp)
  TARGET_LINK_LIBRARIES(${NAME} net)
ENDFOREACH()